package com.spring;

import lombok.extern.java.Log;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.stream.Collectors;

@Component
@Log
public class CommandLineRunnerBean implements CommandLineRunner {
	@Override
	public void run(String... args) {
		String strArgs = Arrays.stream(args).collect(Collectors.joining("|"));
		log.info("Application started with arguments:" + strArgs);
	}
}
